﻿using System;
using System.Collections.Generic;
using System.Text;
using AdaptiveAgents.Agents;

namespace AdaptiveAgents
{
    /// <summary>
    /// Represents an environment that contains agents 
    /// </summary>
    public class Environment
    {
        public List<Agent> agents = new List<Agent>(); //List that contains agents

        /// <summary>
        /// Adds agent to the environment
        /// </summary>
        /// <param name="agent">Agent to be added to the environment</param>
        public void addAgent(Agent agent) { agents.Add(agent); }

        /// <summary>
        /// Prints the records of the agents in environment
        /// </summary>
        public void printAgents()
        {
            foreach (Agent agent in agents)
                agent.printRecord();
        }
    }

}
